<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"
    import="com.microsoft.windowsazure.services.core.storage.*,
    		com.microsoft.windowsazure.services.blob.client.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>List of Blob</title>
</head>
<body>
<%

String storageConnectionString = 
"DefaultEndpointsProtocol=http;" + 
"AccountName=<??>;" + 
"AccountKey=<??>";

CloudStorageAccount storageAccount =
CloudStorageAccount.parse(storageConnectionString);

CloudBlobClient blobClient = storageAccount.createCloudBlobClient();
CloudBlobContainer container = blobClient.getContainerReference("myblobs");

String str = "";
for (ListBlobItem blobItem : container.listBlobs()) {
	str = str + blobItem.getUri() + "<br>";
}
%>
List of blobs:<br>
<%=str %>
</body>
</html>